package pe.com.grupobbva.ohc.hy21;

public class MS_OHC_HY21PortTypeProxy implements pe.com.grupobbva.ohc.hy21.MS_OHC_HY21PortType {
  private String _endpoint = null;
  private pe.com.grupobbva.ohc.hy21.MS_OHC_HY21PortType mS_OHC_HY21PortType = null;
  
  public MS_OHC_HY21PortTypeProxy() {
    _initMS_OHC_HY21PortTypeProxy();
  }
  
  public MS_OHC_HY21PortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initMS_OHC_HY21PortTypeProxy();
  }
  
  private void _initMS_OHC_HY21PortTypeProxy() {
    try {
      mS_OHC_HY21PortType = (new pe.com.grupobbva.ohc.hy21.OHC_HY21_ServiceLocator()).getOHC_HY21_Port();
      if (mS_OHC_HY21PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)mS_OHC_HY21PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)mS_OHC_HY21PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (mS_OHC_HY21PortType != null)
      ((javax.xml.rpc.Stub)mS_OHC_HY21PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public pe.com.grupobbva.ohc.hy21.MS_OHC_HY21PortType getMS_OHC_HY21PortType() {
    if (mS_OHC_HY21PortType == null)
      _initMS_OHC_HY21PortTypeProxy();
    return mS_OHC_HY21PortType;
  }
  
  public pe.com.grupobbva.ohc.hy21.CtConOhcHY21Rs callHY21(pe.com.grupobbva.ohc.hy21.CtConOhcHY21Rq conOhcHY21Rq) throws java.rmi.RemoteException{
    if (mS_OHC_HY21PortType == null)
      _initMS_OHC_HY21PortTypeProxy();
    return mS_OHC_HY21PortType.callHY21(conOhcHY21Rq);
  }
  
  
}